<#function generateHttpMethodConfig>
    <#local methodCode = ""/>
    <#if httpMethod == "GET">
        requestBuilder.GET();
    <#elseif httpMethod == "POST">
        <#if hasJsonBody>
            String requestBody = buildRequestBody();
            requestBuilder.POST(HttpRequest.BodyPublishers.ofString(requestBody))
            .header("Content-Type", "application/json");
        <#else>
            requestBuilder.POST(HttpRequest.BodyPublishers.noBody());
        </#if>
    <#elseif httpMethod == "PUT">
        <#if hasJsonBody>
            String requestBody = buildRequestBody();
            requestBuilder.POST(HttpRequest.BodyPublishers.ofString(requestBody))
            .header("Content-Type", "application/json");
        <#else>
            requestBuilder.POST(HttpRequest.BodyPublishers.noBody());
        </#if>
    </#if>
    <#return methodCode/>
</#function>